Platform Explorer / Nuxeo Platform 6.0

Contribution org.nuxeo.ecm.platform.faceted.search.dm.layouts--widgets

This contribution is part of XML component org.nuxeo.ecm.platform.faceted.search.dm.layouts inside nuxeo-platform-faceted-search-dm-6.0.jar

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="text_search" type="container">
          <handlingLabels>true</handlingLabels>
          <labels>
            <label mode="any">label.faceted.search.textSearch</label>
          </labels>
          <translated>true</translated>
          <subWidgets>
            <widget name="ecm_fulltext" type="text">
              <labels>
                <label mode="any">label.faceted.search.fulltext</label>
              </labels>
              <translated>true</translated>
              <fields>
                <field>fsd:ecm_fulltext</field>
              </fields>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="date_search" type="container">
          <handlingLabels>true</handlingLabels>
          <labels>
            <label mode="any">label.faceted.search.dateSearch</label>
          </labels>
          <translated>true</translated>
          <subWidgets>
            <widget name="dc_created" type="datetimeRange">
              <labels>
                <label mode="any">label.dublincore.creationDate</label>
              </labels>
              <translated>true</translated>
              <fields>
                <field>fsd:dc_created_min</field>
                <field>fsd:dc_created_max</field>
              </fields>
              <properties widgetMode="edit">
                <property name="styleClass">dataInputTextDate</property>
                <property name="format">#{nxu:basicDateAndTimeFormatter()}</property>
              </properties>
            </widget>
    
            <widget name="dc_modified" type="datetimeRange">
              <labels>
                <label mode="any">label.dublincore.modificationDate</label>
              </labels>
              <translated>true</translated>
              <fields>
                <field>fsd:dc_modified_min</field>
                <field>fsd:dc_modified_max</field>
              </fields>
              <properties widgetMode="edit">
                <property name="styleClass">dataInputTextDate</property>
                <property name="format">#{nxu:basicDateAndTimeFormatter()}</property>
              </properties>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="people_search" type="container">
          <handlingLabels>true</handlingLabels>
          <labels>
            <label mode="any">label.faceted.search.peopleSearch</label>
          </labels>
          <translated>true</translated>
          <subWidgets>
            <widget name="dc_creator" type="multipleUsersSuggestion">
              <labels>
                <label mode="any">label.dublincore.creator</label>
              </labels>
              <fields>
                <field>fsd:dc_creator</field>
              </fields>
              <properties widgetMode="any">
                <property name="searchType">USER_TYPE</property>
                <property name="minChars">3</property>
                <property name="hideHelpLabel">true</property>
              </properties>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="collection_search" type="container">
          <handlingLabels>true</handlingLabels>
          <labels>
            <label mode="any">label.faceted.search.collectionSearch</label>
          </labels>
          <translated>true</translated>
          <subWidgets>
            <widget name="visible_collection" type="multipleDocumentsSuggestion">
              <labels>
                <label mode="any">label.collections</label>
              </labels>
              <fields>
                <field>fsd:ecm_collections</field>
              </fields>
              <properties widgetMode="any">
                <property name="minChars">0</property>
                <property name="hideHelpLabel">true</property>
                <property name="pageProviderName">default_collection</property>
                <property name="suggestionFormatter">docSelectionDefaultFormatter</property>
              </properties>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="categorization_search" type="container">
          <handlingLabels>true</handlingLabels>
          <labels>
            <label mode="any">label.faceted.search.categorizationSearch</label>
          </labels>
          <translated>true</translated>
          <properties widgetMode="any">
          </properties>
          <subWidgets>
            <widget name="dc_nature" type="suggestManyDirectory">
              <labels>
                <label mode="any">label.dublincore.nature</label>
              </labels>
              <translated>true</translated>
              <fields>
                <field>fsd:dc_nature</field>
              </fields>
              <properties widgetMode="any">
                <property name="directoryName">nature</property>
                <property name="minChars">0</property>
                <property name="hideHelpLabel">true</property>
                <property name="localize">true</property>
              </properties>
            </widget>
            <widget name="dc_coverage" type="suggestManyDirectory">
              <labels>
                <label mode="any">label.faceted.search.coverage</label>
              </labels>
              <translated>true</translated>
              <fields>
                <field>fsd:dc_coverage</field>
              </fields>
              <properties widgetMode="any">
                <property name="directoryName">l10ncoverage</property>
                <property name="dbl10n">true</property>
                <property name="minChars">0</property>
                <property name="hideHelpLabel">true</property>
                <property name="filterParent">true</property>
                <property name="canSelectParent">true</property>
              </properties>
            </widget>
            <widget name="dc_subjects" type="suggestManyDirectory">
              <labels>
                <label mode="any">label.faceted.search.subjects</label>
              </labels>
              <translated>true</translated>
              <fields>
                <field>fsd:dc_subjects</field>
              </fields>
              <properties widgetMode="any">
                <property name="directoryName">l10nsubjects</property>
                <property name="dbl10n">true</property>
                <property name="minChars">0</property>
                <property name="hideHelpLabel">true</property>
                <property name="filterParent">true</property>
                <property name="canSelectParent">true</property>
              </properties>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="path_search" type="container">
          <handlingLabels>true</handlingLabels>
          <labels>
            <label mode="any">label.faceted.search.pathSearch</label>
          </labels>
          <translated>true</translated>
          <subWidgets>
            <widget name="ecm_path" type="select_path_tree">
              <labels>
                <label mode="any">label.faceted.search.path</label>
              </labels>
              <translated>true</translated>
              <fields>
                <field>fsd:ecm_path</field>
              </fields>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="all_saved_faceted_searches_selector" type="all_saved_faceted_searches_selector">
          <widgetModes>
            <!-- not shown in edit and view modes -->
            <mode value="view">hidden</mode>
            <mode value="edit">hidden</mode>
          </widgetModes>
          <properties widgetMode="any">
            <property name="outcome">faceted_search_results</property>
          </properties>
        </widget>
  • <widget name="actions_bar" type="template">
          <properties widgetMode="any">
            <property name="template">
              /widgets/faceted_search_actions_widget_template.xhtml
            </property>
          </properties>
          <widgetModes>
            <!-- not shown in edit and view modes -->
            <mode value="view">hidden</mode>
            <mode value="edit">hidden</mode>
          </widgetModes>
        </widget>
  • <widget name="facetedSaveSearch" type="container">
          <handlingLabels>true</handlingLabels>
          <labels>
            <label mode="any">label.faceted.search.saveSearch</label>
          </labels>
          <translated>true</translated>
          <properties widgetMode="any">
            <property name="hideSubLabels">true</property>
            <property name="foldable">true</property>
            <property name="foldedByDefault">true</property>
          </properties>
          <controls mode="any">
            <control name="requireSurroundingForm">true</control>
          </controls>
          <subWidgets>
            <widget name="saveContentView" type="saveBox">
              <fields>
                <field>#{facetedSearchActions.savedSearchTitle}</field>
              </fields>
              <properties widgetMode="any">
                <property name="required">true</property>
                <property name="placeholder">#{messages['label.faceted.search.save.placeholder']}
                </property>
                <property name="description">label.faceted.search.save.description
                </property>
                <property name="actionId">facetedSaveSearchAction</property>
              </properties>
            </widget>
          </subWidgets>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="text_search" type="container">
      <handlingLabels>true</handlingLabels>
      <labels>
        <label mode="any">label.faceted.search.textSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="ecm_fulltext" type="text">
          <labels>
            <label mode="any">label.faceted.search.fulltext</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:ecm_fulltext</field>
          </fields>
        </widget>
      </subWidgets>
    </widget>

    <widget name="date_search" type="container">
      <handlingLabels>true</handlingLabels>
      <labels>
        <label mode="any">label.faceted.search.dateSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="dc_created" type="datetimeRange">
          <labels>
            <label mode="any">label.dublincore.creationDate</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_created_min</field>
            <field>fsd:dc_created_max</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputTextDate</property>
            <property name="format">#{nxu:basicDateAndTimeFormatter()}</property>
          </properties>
        </widget>

        <widget name="dc_modified" type="datetimeRange">
          <labels>
            <label mode="any">label.dublincore.modificationDate</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_modified_min</field>
            <field>fsd:dc_modified_max</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputTextDate</property>
            <property name="format">#{nxu:basicDateAndTimeFormatter()}</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="people_search" type="container">
      <handlingLabels>true</handlingLabels>
      <labels>
        <label mode="any">label.faceted.search.peopleSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="dc_creator" type="multipleUsersSuggestion">
          <labels>
            <label mode="any">label.dublincore.creator</label>
          </labels>
          <fields>
            <field>fsd:dc_creator</field>
          </fields>
          <properties widgetMode="any">
            <property name="searchType">USER_TYPE</property>
            <property name="minChars">3</property>
            <property name="hideHelpLabel">true</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="collection_search" type="container">
      <handlingLabels>true</handlingLabels>
      <labels>
        <label mode="any">label.faceted.search.collectionSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="visible_collection" type="multipleDocumentsSuggestion">
          <labels>
            <label mode="any">label.collections</label>
          </labels>
          <fields>
            <field>fsd:ecm_collections</field>
          </fields>
          <properties widgetMode="any">
            <property name="minChars">0</property>
            <property name="hideHelpLabel">true</property>
            <property name="pageProviderName">default_collection</property>
            <property name="suggestionFormatter">docSelectionDefaultFormatter</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="categorization_search" type="container">
      <handlingLabels>true</handlingLabels>
      <labels>
        <label mode="any">label.faceted.search.categorizationSearch</label>
      </labels>
      <translated>true</translated>
      <properties widgetMode="any">
      </properties>
      <subWidgets>
        <widget name="dc_nature" type="suggestManyDirectory">
          <labels>
            <label mode="any">label.dublincore.nature</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_nature</field>
          </fields>
          <properties widgetMode="any">
            <property name="directoryName">nature</property>
            <property name="minChars">0</property>
            <property name="hideHelpLabel">true</property>
            <property name="localize">true</property>
          </properties>
        </widget>
        <widget name="dc_coverage" type="suggestManyDirectory">
          <labels>
            <label mode="any">label.faceted.search.coverage</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_coverage</field>
          </fields>
          <properties widgetMode="any">
            <property name="directoryName">l10ncoverage</property>
            <property name="dbl10n">true</property>
            <property name="minChars">0</property>
            <property name="hideHelpLabel">true</property>
            <property name="filterParent">true</property>
            <property name="canSelectParent">true</property>
          </properties>
        </widget>
        <widget name="dc_subjects" type="suggestManyDirectory">
          <labels>
            <label mode="any">label.faceted.search.subjects</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:dc_subjects</field>
          </fields>
          <properties widgetMode="any">
            <property name="directoryName">l10nsubjects</property>
            <property name="dbl10n">true</property>
            <property name="minChars">0</property>
            <property name="hideHelpLabel">true</property>
            <property name="filterParent">true</property>
            <property name="canSelectParent">true</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="path_search" type="container">
      <handlingLabels>true</handlingLabels>
      <labels>
        <label mode="any">label.faceted.search.pathSearch</label>
      </labels>
      <translated>true</translated>
      <subWidgets>
        <widget name="ecm_path" type="select_path_tree">
          <labels>
            <label mode="any">label.faceted.search.path</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>fsd:ecm_path</field>
          </fields>
        </widget>
      </subWidgets>
    </widget>

    <widget name="all_saved_faceted_searches_selector" type="all_saved_faceted_searches_selector">
      <widgetModes>
        <!-- not shown in edit and view modes -->
        <mode value="view">hidden</mode>
        <mode value="edit">hidden</mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="outcome">faceted_search_results</property>
      </properties>
    </widget>

    <widget name="actions_bar" type="template">
      <properties widgetMode="any">
        <property name="template">
          /widgets/faceted_search_actions_widget_template.xhtml
        </property>
      </properties>
      <widgetModes>
        <!-- not shown in edit and view modes -->
        <mode value="view">hidden</mode>
        <mode value="edit">hidden</mode>
      </widgetModes>
    </widget>

    <widget name="facetedSaveSearch" type="container">
      <handlingLabels>true</handlingLabels>
      <labels>
        <label mode="any">label.faceted.search.saveSearch</label>
      </labels>
      <translated>true</translated>
      <properties widgetMode="any">
        <property name="hideSubLabels">true</property>
        <property name="foldable">true</property>
        <property name="foldedByDefault">true</property>
      </properties>
      <controls mode="any">
        <control name="requireSurroundingForm">true</control>
      </controls>
      <subWidgets>
        <widget name="saveContentView" type="saveBox">
          <fields>
            <field>#{facetedSearchActions.savedSearchTitle}</field>
          </fields>
          <properties widgetMode="any">
            <property name="required">true</property>
            <property name="placeholder">#{messages['label.faceted.search.save.placeholder']}
            </property>
            <property name="description">label.faceted.search.save.description
            </property>
            <property name="actionId">facetedSaveSearchAction</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

  </extension>